Optimal. Leaf size=142 \[ \frac {2 a^{3/2} A \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a (5 B+3 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{15 d}+\frac {2 C \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4054, 3917, 3915, 3774, 203, 3792} \[ \frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^{3/2} A \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {2 a (5 B+3 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{15 d}+\frac {2 C \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 3774
Rule 3792
Rule 3915
Rule 3917
Rule 4054
Rubi steps
\begin {align*} \int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {2 \int (a+a \sec (c+d x))^{3/2} \left (\frac {5 a A}{2}+\frac {1}{2} a (5 B+3 C) \sec (c+d x)\right ) \, dx}{5 a}\\ &=\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {4 \int \sqrt {a+a \sec (c+d x)} \left (\frac {15 a^2 A}{4}+\frac {1}{4} a^2 (15 A+20 B+12 C) \sec (c+d x)\right ) \, dx}{15 a}\\ &=\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+(a A) \int \sqrt {a+a \sec (c+d x)} \, dx+\frac {1}{15} (a (15 A+20 B+12 C)) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}-\frac {\left (2 a^2 A\right ) \operatorname {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=\frac {2 a^{3/2} A \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.39, size = 132, normalized size = 0.93 \[ \frac {a \sec \left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x) \sqrt {a (\sec (c+d x)+1)} \left (2 \sin \left (\frac {1}{2} (c+d x)\right ) ((15 A+25 B+18 C) \cos (2 (c+d x))+15 A+2 (5 B+9 C) \cos (c+d x)+25 B+24 C)+30 \sqrt {2} A \sin ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^{\frac {5}{2}}(c+d x)\right )}{30 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 364, normalized size = 2.56 \[ \left [\frac {15 \, {\left (A a \cos \left (d x + c\right )^{3} + A a \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left ({\left (15 \, A + 25 \, B + 18 \, C\right )} a \cos \left (d x + c\right )^{2} + {\left (5 \, B + 9 \, C\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}, -\frac {2 \, {\left (15 \, {\left (A a \cos \left (d x + c\right )^{3} + A a \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left ({\left (15 \, A + 25 \, B + 18 \, C\right )} a \cos \left (d x + c\right )^{2} + {\left (5 \, B + 9 \, C\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )\right )}}{15 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 2.00, size = 342, normalized size = 2.41 \[ -\frac {\frac {15 \, A \sqrt {-a} a^{2} \log \left (\frac {{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} - 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}{{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} + 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}\right ) \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}{{\left | a \right |}} - \frac {2 \, {\left ({\left (\sqrt {2} {\left (15 \, A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 20 \, B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 12 \, C a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 10 \, \sqrt {2} {\left (3 \, A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 5 \, B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 3 \, C a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 15 \, \sqrt {2} {\left (A a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 2 \, B a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 2 \, C a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{2} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}}{15 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.51, size = 361, normalized size = 2.54 \[ -\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (15 A \sqrt {2}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+30 A \sqrt {2}\, \sin \left (d x +c \right ) \cos \left (d x +c \right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+15 A \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sqrt {2}\, \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )+120 A \left (\cos ^{3}\left (d x +c \right )\right )+200 B \left (\cos ^{3}\left (d x +c \right )\right )+144 C \left (\cos ^{3}\left (d x +c \right )\right )-120 A \left (\cos ^{2}\left (d x +c \right )\right )-160 B \left (\cos ^{2}\left (d x +c \right )\right )-72 C \left (\cos ^{2}\left (d x +c \right )\right )-40 B \cos \left (d x +c \right )-48 C \cos \left (d x +c \right )-24 C \right ) a}{60 d \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________